import Access_Enum from "@/access/access_Enum.js";

export const routes = [
    {
        path: "/",
        redirect: "/login",
        meta:{
            hidden: true
        }
    },
    {
        path: '/home',
        component: () => import('@/components/Home.vue'),
        children: [
            {
                path: "/member",
                name: "成员管理",
                icon: 'user',
                component: () => import('@/view/Member.vue'),
                meta: {
                    access: Access_Enum.ADMIN
                }
            }, {
                path: "/department",
                name: "部门管理",
                icon: 'office-building',
                component: () => import('@/view/department.vue'),
                meta: {
                    access: Access_Enum.ADMIN
                }
            }, {
                path: "/project",
                name: "项目管理",
                icon: 'folder',
                component: () => import('@/view/project.vue'),
                meta: {
                    access: Access_Enum.ADMIN
                }
            },
            {
                path: "/information",
                name: "信息管理",
                icon: 'InfoFilled',
                meta: {
                    access: Access_Enum.USER
                },
                children: [
                    {
                        path: "activity",
                        name: "活动管理",
                        icon: 'Tickets',
                        component: () => import('@/view/activity.vue'),
                    }, {
                        path: "announcement",
                        name: "通告通知",
                        icon: 'Notification',
                        component: () => import('@/view/announcement.vue'),
                    }, {
                        path: "integral",
                        name: "积分管理",
                        icon: 'Star',
                        component: () => import('@/view/integral.vue'),
                    }
                ]
            },

        ]
    }, {
        path: "/login",
        name: "登录",
        component: () => import('@/components/Login.vue'),
        meta:{
            hidden: true
        }
    }
]